package laf.ui;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import laf.agents.LanguageSymbolDictionary;
import laf.agents.LanguageSymbolGroundingHistory;

public class ActiveGroundingHistory extends LanguageSymbolGroundingHistory {
	
	private ChangeListener listener;

	public void setListener(ChangeListener listener) {
		this.listener = listener;
	}

	public ChangeListener getListener() {
		return listener;
	}
	
	public void add(long time, LanguageSymbolDictionary dictionary) {
		super.add(time, dictionary);
		listener.stateChanged(new ChangeEvent(this));
	}

}
